{% extends 'base.html' %}

{% load static %}

{% block title %}
{{ teacher.me.first_name }}
{% endblock %}

{% block css %}
{{ block.super }}
<!-- <link rel="stylesheet" type="text/css" href="{% static 'css/student.css' %}"> -->
{% endblock %}

{% block content %}
<div class="container">
	<div class="columns">
		<div class="column col-6 col-lg-8 col-md-10 col-sm-12 col-lg-auto col-md-auto col-sm-auto col-mx-auto">
			
			<p class="h5">请在此添加新的学生</p>

			<form class="form-horizontal" id="add-student" method="post" action="/students/add">{% csrf_token %}
				<input type="number" value="{{ school_id }}" name="school_id" hidden>

				{% include 'user-block.html' with exclude_icon=True %}

				<div class="form-group">
					<button class="btn btn-primary" type="submit" v-on:click="beforeSubmit">确定</button>
				</div>

			</form>

		</div>
	</div>
</div>
{% endblock %}

{% block javascript %}
<script type="text/javascript" src="{% static 'js/js.cookie.js' %}"></script>
<script type="text/javascript" src="{% static 'js/teacher-add-class.js' %}"></script>
<script type="text/javascript">
navbar.$set('brand', '{{ teacher.me.first_name }}')
navbar.$set('brand_url', '/accounts/profile?teacher_id={{ teacher.pk }}')
</script>
{% endblock %}